package com.lz.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import lombok.Data;

/**@房产信息类
 * @author 徐建林
 * @date 2018/10/21 12:14
 */
@Data
@Table
@Entity
public class HouseProperty implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 2209504605580433270L;
	@Id
    @GeneratedValue(generator = "native")
    @GenericGenerator(name = "native",strategy = "native")
    /**房产编号*/
    private Integer housePropertyId;
    /**是否按揭*/
    private Boolean paied;
    /**按揭信息*/
    private String paiedInfo;
    /** 房产地址*/
    private String houseAddress;
    /**房产价值*/
    private Double houseValue;
    /**房产面积*/
    private Double houseArea;
    @ManyToOne(targetEntity=Customer.class)
    @JoinColumn(name="customerId")
    private Customer customer;
}
